<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.prime.com.tr/ui">

<h:head></h:head>
<body>

	<h:dataTable value="#{denemeBean.denemeList}" var="deneme">

		<h:column>
			<f:facet name="header">id</f:facet>
		#{deneme.id}
	</h:column>

		<h:column>
			<f:facet name="header">Text</f:facet>
		#{deneme.text}
	</h:column>

	</h:dataTable>

	<h2>Yeni ekle</h2>
	<p:editor />
	<h:form>
		<h:panelGrid columns="2">
		Text : <h:inputText id="text" value="#{denemeBean.text}" size="20"
				required="true" label="Text" />
			<h:message for="text" style="color:red" />
		</h:panelGrid>
		<h:commandButton action="#{denemeBean.addDeneme}" value="Ekle" />
	</h:form>
</body>
</html>
